package com.sharer.last.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sharer.last.base.model.BasePO;
import lombok.*;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 博客动态
 *
 * @ClassName MomentPO
 * @Author WangJin
 * @Date 2023/5/5 17:35
 * @Description
 * @Version 1.0
 */
@TableName("moment")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
public class MomentPO extends BasePO {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 动态内容
     */
    private String content;

    /**
     * 点赞数量
     */
    private Integer likes;

    /**
     * 是否公开  0:不公开 1：公开
     */
    private Integer isPublished;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 逻辑删除 未添加则直接删除数据 添加后为update语句
     */
    @TableLogic
    private Integer isDelete;
}
